#ifndef _VIDEO_FRAME_QUEUE_H_
#define _VIDEO_FRAME_QUEUE_H_

#include "FrameQueue.h"

class VideoFrameQueue : public FrameQueue
{

public:
    VideoFrameQueue(double fps, double maxCapacity);

    bool isFull() override;

protected:
    virtual void onFramePushed(AVFrame* frame) override;

    virtual void onFramePoped(AVFrame* frmae) override;

private:
	double m_fps;
    double m_maxCapacity;
    int64_t m_firstPTS = INT64_MIN;
};

#endif
